//
//  ExamplesViewController.swift
//  viewcontroller_test
//
//  Created by 曾思宇 on 16/4/2.
//  Copyright © 2016年 海南开工信息技术有限公司. All rights reserved.
//

import UIKit

class ExamplesViewController: UIViewController {

    @IBAction func onClickShowTaobaoExample(sender: AnyObject) {
        
        let viewController = UIStoryboard(name: "TaobaoProductDetail", bundle: nil).instantiateViewControllerWithIdentifier("taobao")
            
        if let navController = MainTabbarController.mainViewController?.navigationController {
            navController.showViewController(viewController, sender: self)
        }
        else {
            showViewController(viewController, sender: self)
        }
            
        
        
        
    }
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
